import config from '@/config'
import http from '@/utils/request'

export default {
	getPolicyList: {
		url: `${config.API_URL}/Policy/getPolicyList`,
		name: '政策发布列表',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
    createPolicy: {
		url: `${config.API_URL}/Policy/createPolicy`,
		name: '政策发布',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	delPolicy: {
		url: `${config.API_URL}/Policy/delPolicy`,
		name: '政策删除',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},

}
